﻿package com.guavestudios.fcfg {
	import flash.events.Event;
	
	/**
	 * ...
	 * @author maze | guavestudios.com
	 */
	public class FcfgEvent extends Event {
		
		public static const SETTING_CHANGED:String= "FcfgEvent.SETTING_CHANGED";
		
		protected var _id:String;
		protected var _oldValue:*;
		protected var _newValue:*;
		
		public function FcfgEvent(type:String, id:String,oldS:*,newS:*,bubbles:Boolean=false, cancelable:Boolean=false) { 
			super(type, bubbles, cancelable);
			_id = id;
			_oldValue = oldS;
			_newValue = newS;
		} 
		
		public override function clone():Event { 
			return new FcfgEvent(type,_id,_oldValue,_newValue,bubbles, cancelable);
		} 
		
		public override function toString():String { 
			return formatToString("FcfgEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get id():String { return _id; }
		
		public function set id(value:String):void {
			_id = value;
		}
		
		public function get oldValue():* { return _oldValue; }
		
		public function set oldValue(value:*):void {
			_oldValue = value;
		}
		
		public function get newValue():* { return _newValue; }
		
		public function set newValue(value:*):void {
			_newValue = value;
		}
		
	}
	
}